package com.itheima;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.*;
import com.itheima.service.DeptService;
import com.mysql.cj.Constants;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
//master
//master
@SpringBootApplication
public class TliasManagementApplication {

        public static void main(String[] args) {
            ConfigurableApplicationContext run = SpringApplication.run(TliasManagementApplication.class, args);
            DeptService bean1 = run.getBean(DeptService.class);
            DeptService bean2 = run.getBean(DeptService.class);


            System.out.println(bean1);
            System.out.println(bean2);

        }

}
